Optimal. Leaf size=5 \[ \frac {x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3254, 8}
\begin {gather*} \frac {x}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3254
Rubi steps
\begin {align*} \int \frac {\cos ^2(x)}{a-a \sin ^2(x)} \, dx &=\frac {\int 1 \, dx}{a}\\ &=\frac {x}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 5, normalized size = 1.00 \begin {gather*} \frac {x}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 3 vs. order
1.
time = 0.14, size = 8, normalized size = 1.60
method | result | size |
risch | \(\frac {x}{a}\) | \(6\) |
default | \(\frac {\arctan \left (\tan \left (x \right )\right )}{a}\) | \(8\) |
norman | \(\frac {\frac {x \left (\tan ^{4}\left (\frac {x}{2}\right )\right )}{a}+\frac {x \left (\tan ^{6}\left (\frac {x}{2}\right )\right )}{a}-\frac {x}{a}-\frac {x \left (\tan ^{2}\left (\frac {x}{2}\right )\right )}{a}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )^{2} \left (\tan ^{2}\left (\frac {x}{2}\right )-1\right )}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 5, normalized size = 1.00 \begin {gather*} \frac {x}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 5, normalized size = 1.00 \begin {gather*} \frac {x}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.45, size = 2, normalized size = 0.40 \begin {gather*} \frac {x}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 14 vs.
\(2 (5) = 10\).
time = 0.45, size = 14, normalized size = 2.80 \begin {gather*} \frac {\arctan \left (\frac {{\left | a \right |} \tan \left (x\right )}{a}\right )}{{\left | a \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 13.81, size = 5, normalized size = 1.00 \begin {gather*} \frac {x}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________